/* 
 *   WWW.COO8.COM  
 */

package com.gm.memberShip.menu.model; 

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;


import java.util.*;
import org.apache.commons.lang.StringUtils;
 

import com.gm.memberShip.menu.model.*;
import com.gm.memberShip.menu.persistence.interfaces.*;
import com.gm.memberShip.menu.business.interfaces.*;  

/**
 * @author  JIANGCHENG
 * @version 1.0
 * @since 1.0
 */


public class ActiveCode  implements java.io.Serializable {
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "ActiveCode";
	public static final String ALIAS_APPLICATION_ID = "applicationId";
	public static final String ALIAS_ACTIVE_CODE = "activeCode";
	public static final String ALIAS_BEGIN_ACTIVITY_DATE = "beginActivityDate";
	public static final String ALIAS_END_ACTIVITY_DATE = "endActivityDate";
	public static final String ALIAS_IS_OPEN = "isOpen";
	public static final String ALIAS_COMPANY = "company";
	
	 
	 
	//columns START
	private java.lang.Object applicationId;
	private java.lang.String actCode;
	private java.util.Date beginActivityDate;
	private java.util.Date endActivityDate;
	private java.lang.Integer isOpen;
	private java.lang.String company;
	//columns END

	public ActiveCode(){
	}

	public ActiveCode(
		java.lang.String activeCode
	){
		this.actCode = actCode;
	} 
		 
	public void setApplicationId(java.lang.Object value) {
		this.applicationId = value;
	}
	
	public java.lang.Object getApplicationId() {
		return this.applicationId;
	}
		 
	public void setActiveCode(java.lang.String value) {
		this.actCode = value;
	}
	
	public java.lang.String getActiveCode() {
		return this.actCode;
	}
		 
	public void setBeginActivityDate(java.util.Date value) {
		this.beginActivityDate = value;
	}
	
	public java.util.Date getBeginActivityDate() {
		return this.beginActivityDate;
	}
		 
	public void setEndActivityDate(java.util.Date value) {
		this.endActivityDate = value;
	}
	
	public java.util.Date getEndActivityDate() {
		return this.endActivityDate;
	}
		 
	public void setIsOpen(java.lang.Integer value) {
		this.isOpen = value;
	}
	
	public java.lang.Integer getIsOpen() {
		return this.isOpen;
	}
		 
	public void setCompany(java.lang.String value) {
		this.company = value;
	}
	
	public java.lang.String getCompany() {
		return this.company;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("ApplicationId",getApplicationId())
			.append("ActiveCode",getActiveCode())
			.append("BeginActivityDate",getBeginActivityDate())
			.append("EndActivityDate",getEndActivityDate())
			.append("IsOpen",getIsOpen())
			.append("Company",getCompany())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getActiveCode())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof ActiveCode == false) return false;
		if(this == obj) return true;
		ActiveCode other = (ActiveCode)obj;
		return new EqualsBuilder()
			.append(getActiveCode(),other.getActiveCode())
			.isEquals();
	}
}

